package com.kung.qvs.entity;

import android.graphics.drawable.Drawable;

import com.kung.qvs.R;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

import me.goldze.mvvmhabit.utils.Utils;

@Entity
public class GarbageTypeBean {
    @Id(autoincrement = true)
    private Long _id;
    @Unique
    private String id;    //垃圾编码
    private String typename;    //垃圾名称
    private String price;   //单价 默认 元/千克
    private String unit;    //单位
    @Transient
    private boolean isSelected = false; //是否被选中
    @Transient
    private int textColorName = Utils.getContext().getResources().getColor(R.color.trash_type_normal);
    @Transient
    private int textColorPrice = Utils.getContext().getResources().getColor(R.color.trash_type_price_normal);
    @Transient
    private Drawable bgDrawable = Utils.getContext().getResources().getDrawable(R.drawable.shape_trash_type_corner, null);


    @Generated(hash = 1866226635)
    public GarbageTypeBean(Long _id, String id, String typename, String price, String unit) {
        this._id = _id;
        this.id = id;
        this.typename = typename;
        this.price = price;
        this.unit = unit;
    }

    @Generated(hash = 1952448763)
    public GarbageTypeBean() {
    }
    

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }

    public int getTextColorName() {
        return textColorName;
    }

    public void setTextColorName(int textColorName) {
        this.textColorName = textColorName;
    }

    public int getTextColorPrice() {
        return textColorPrice;
    }

    public void setTextColorPrice(int textColorPrice) {
        this.textColorPrice = textColorPrice;
    }

    public Drawable getBgDrawable() {
        return bgDrawable;
    }

    public void setBgDrawable(Drawable bgDrawable) {
        this.bgDrawable = bgDrawable;
    }

    public Long get_id() {
        return this._id;
    }

    public void set_id(Long _id) {
        this._id = _id;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTypename() {
        return this.typename;
    }

    public void setTypename(String typename) {
        this.typename = typename;
    }

    public String getPrice() {
        return this.price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getUnit() {
        return this.unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
}
